/*  1:   */ package org.jetbrains.debugger;
/*  2:   */ 
/*  3:   */

import com.intellij.util.Consumer;
import com.intellij.xdebugger.XDebugSession;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public final class RejectErrorReporter
/*  9:   */   implements Consumer<String>
/* 10:   */ {
/* 11:   */   private final XDebugSession a;
/* 12:   */   private final String b;
/* 13:   */   
/* 14:   */   public RejectErrorReporter(@NotNull XDebugSession paramXDebugSession)
/* 15:   */   {
/* 16:13 */     this(paramXDebugSession, null);
/* 17:   */   }
/* 18:   */   
/* 19:   */   public RejectErrorReporter(@NotNull XDebugSession paramXDebugSession, @Nullable String paramString)
/* 20:   */   {
/* 21:17 */     this.a = paramXDebugSession;
/* 22:18 */     this.b = paramString;
/* 23:   */   }
/* 24:   */   
/* 25:   */   public void consume(@Nullable String paramString)
/* 26:   */   {
/* 27:23 */     this.a.reportError((this.b == null ? "" : new StringBuilder().append(this.b).append(": ").toString()) + (paramString == null ? "Unknown error" : paramString));
/* 28:   */   }
/* 29:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.debugger.RejectErrorReporter

 * JD-Core Version:    0.7.0.1

 */